package com.wp.mapper;

import com.wp.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface CommentMapper {

    List<Comment> getCommentList(@Param("query") String query,
                                 @Param("startNum") Integer startNum,
                                 @Param("size") Integer size,
                                 @Param("status") Integer status);

    Long getCommentCount(@Param("query") String query,
                           @Param("status") Integer status);
//    void deleteComment(@Param("uid") String uid,
//                @Param("updateTime") Date updateTime);

    void deleteComment(@Param("uid") String uid,
                       @Param("updatedTime") Date updatedTime,
                       @Param("status") Integer status);


}
